﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ATMSystem
{
    public partial class frmSelectViewHistory : Form
    {
        public frmSelectViewHistory()
        {
            InitializeComponent();
        }

        public void visibleButton(bool a)
        {
            lst.Enabled = !a;
            button7.Enabled = !a;
            label1.Enabled = a;
            label3.Enabled = a;
            label4.Enabled = a;
            label5.Enabled = a;
        }
        private void buttonClick(object sender,EventArgs e)
        {
            Button bt = sender as Button;
            if(bt.Name=="button7")
            {
                visibleButton(true);
            }
            if(bt.Name=="button1")
            {
                visibleButton(false);
            }
            if (bt.Name == "button2")
            {
                visibleButton(false);
            }
            if (bt.Name == "button4")
            {
                visibleButton(false);
            }
            if (bt.Name == "button5")
            {
                visibleButton(false);
            }
        }
    }
}
